using System;
using System.Linq;

namespace Pay.Core {
    public static class IQueryableExtensions {
        public static IQueryable<T> ForEach<T>(this IQueryable<T> items, Action<T> action) {
            foreach (var item in items)
                action(item);
            return items;
        }
    }
}
